﻿using System;
using System.Collections.Generic;
using UIDevCore;

namespace SmartUIBll
{
    public class FnAdapter
    {
        public static object RunFuntion(PostData postData, FnCode fncode,ref string error)
        {
            switch (fncode.ClassName)
            {
                //case "BRCustomer":
                //    return BRCustomer.RunFunction(postData.No, postData.Body, ref error);
                //case "BRNews":
                //    return BRNews.RunFunction(postData.No, postData.Body, ref error);
                //case "BRProduct":
                //    return BRProduct.RunFunction(postData.No, postData.Body, ref error);
                //case "BRContact":
                //    return BRContact.RunFunction(postData.No, postData.Body, ref error);
                //case "BRFeedback":
                //    return BRFeedback.RunFunction(postData.No, postData.Body, ref error);
                //case "BROrder":
                //    return BROrder.RunFunction(postData.No, postData.Body, ref error);
                default:
                    return null;
            }
        }
    }
}
